Integrand size = 11, antiderivative size = 97 \[ \int \sin \left (a+b x+c x^2\right ) \, dx=\frac {\sqrt {\frac {\pi }{2}} \cos \left (a-\frac {b^2}{4 c}\right ) \operatorname {FresnelS}\left (\frac {b+2 c x}{\sqrt {c} \sqrt {2 \pi }}\right )}{\sqrt {c}}+\frac {\sqrt {\frac {\pi }{2}} \operatorname {FresnelC}\left (\frac {b+2 c x}{\sqrt {c} \sqrt {2 \pi }}\right ) \sin \left (a-\frac {b^2}{4 c}\right )}{\sqrt {c}} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {3528, 3432, 3433} \[ \int \sin \left (a+b x+c x^2\right ) \, dx=\frac {\sqrt {\frac {\pi }{2}} \sin \left (a-\frac {b^2}{4 c}\right ) \operatorname {FresnelC}\left (\frac {b+2 c x}{\sqrt {c} \sqrt {2 \pi }}\right )}{\sqrt {c}}+\frac {\sqrt {\frac {\pi }{2}} \cos \left (a-\frac {b^2}{4 c}\right ) \operatorname {FresnelS}\left (\frac {b+2 c x}{\sqrt {c} \sqrt {2 \pi }}\right )}{\sqrt {c}} \]
[In]
[Out]
Rule 3432
Rule 3433
Rule 3528
Rubi steps \begin{align*} \text {integral}& = \cos \left (a-\frac {b^2}{4 c}\right ) \int \sin \left (\frac {(b+2 c x)^2}{4 c}\right ) \, dx+\sin \left (a-\frac {b^2}{4 c}\right ) \int \cos \left (\frac {(b+2 c x)^2}{4 c}\right ) \, dx \\ & = \frac {\sqrt {\frac {\pi }{2}} \cos \left (a-\frac {b^2}{4 c}\right ) \operatorname {FresnelS}\left (\frac {b+2 c x}{\sqrt {c} \sqrt {2 \pi }}\right )}{\sqrt {c}}+\frac {\sqrt {\frac {\pi }{2}} \operatorname {FresnelC}\left (\frac {b+2 c x}{\sqrt {c} \sqrt {2 \pi }}\right ) \sin \left (a-\frac {b^2}{4 c}\right )}{\sqrt {c}} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.87 \[ \int \sin \left (a+b x+c x^2\right ) \, dx=\frac {\sqrt {\frac {\pi }{2}} \left (\cos \left (a-\frac {b^2}{4 c}\right ) \operatorname {FresnelS}\left (\frac {b+2 c x}{\sqrt {c} \sqrt {2 \pi }}\right )+\operatorname {FresnelC}\left (\frac {b+2 c x}{\sqrt {c} \sqrt {2 \pi }}\right ) \sin \left (a-\frac {b^2}{4 c}\right )\right )}{\sqrt {c}} \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 82, normalized size of antiderivative = 0.85
method | result | size |
default | \(\frac {\sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (\frac {\frac {b^{2}}{4}-a c}{c}\right ) \operatorname {S}\left (\frac {\sqrt {2}\, \left (c x +\frac {b}{2}\right )}{\sqrt {\pi }\, \sqrt {c}}\right )-\sin \left (\frac {\frac {b^{2}}{4}-a c}{c}\right ) \operatorname {C}\left (\frac {\sqrt {2}\, \left (c x +\frac {b}{2}\right )}{\sqrt {\pi }\, \sqrt {c}}\right )\right )}{2 \sqrt {c}}\) | \(82\) |
risch | \(\frac {i \sqrt {\pi }\, {\mathrm e}^{-\frac {i \left (4 a c -b^{2}\right )}{4 c}} \operatorname {erf}\left (\sqrt {i c}\, x +\frac {i b}{2 \sqrt {i c}}\right )}{4 \sqrt {i c}}+\frac {i \sqrt {\pi }\, {\mathrm e}^{\frac {i \left (4 a c -b^{2}\right )}{4 c}} \operatorname {erf}\left (-\sqrt {-i c}\, x +\frac {i b}{2 \sqrt {-i c}}\right )}{4 \sqrt {-i c}}\) | \(101\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.05 \[ \int \sin \left (a+b x+c x^2\right ) \, dx=\frac {\sqrt {2} \pi \sqrt {\frac {c}{\pi }} \cos \left (-\frac {b^{2} - 4 \, a c}{4 \, c}\right ) \operatorname {S}\left (\frac {\sqrt {2} {\left (2 \, c x + b\right )} \sqrt {\frac {c}{\pi }}}{2 \, c}\right ) + \sqrt {2} \pi \sqrt {\frac {c}{\pi }} \operatorname {C}\left (\frac {\sqrt {2} {\left (2 \, c x + b\right )} \sqrt {\frac {c}{\pi }}}{2 \, c}\right ) \sin \left (-\frac {b^{2} - 4 \, a c}{4 \, c}\right )}{2 \, c} \]
[In]
[Out]
Time = 0.21 (sec) , antiderivative size = 88, normalized size of antiderivative = 0.91 \[ \int \sin \left (a+b x+c x^2\right ) \, dx=\frac {\sqrt {2} \sqrt {\pi } \left (\sin {\left (a - \frac {b^{2}}{4 c} \right )} C\left (\frac {\sqrt {2} \left (b + 2 c x\right )}{2 \sqrt {\pi } \sqrt {c}}\right ) + \cos {\left (a - \frac {b^{2}}{4 c} \right )} S\left (\frac {\sqrt {2} \left (b + 2 c x\right )}{2 \sqrt {\pi } \sqrt {c}}\right )\right ) \sqrt {\frac {1}{c}}}{2} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.21 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.15 \[ \int \sin \left (a+b x+c x^2\right ) \, dx=-\frac {\sqrt {2} \sqrt {\pi } {\left ({\left (-\left (i + 1\right ) \, \cos \left (-\frac {b^{2} - 4 \, a c}{4 \, c}\right ) + \left (i - 1\right ) \, \sin \left (-\frac {b^{2} - 4 \, a c}{4 \, c}\right )\right )} \operatorname {erf}\left (\frac {2 i \, c x + i \, b}{2 \, \sqrt {i \, c}}\right ) + {\left (-\left (i - 1\right ) \, \cos \left (-\frac {b^{2} - 4 \, a c}{4 \, c}\right ) + \left (i + 1\right ) \, \sin \left (-\frac {b^{2} - 4 \, a c}{4 \, c}\right )\right )} \operatorname {erf}\left (\frac {2 i \, c x + i \, b}{2 \, \sqrt {-i \, c}}\right )\right )}}{8 \, \sqrt {c}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.31 (sec) , antiderivative size = 135, normalized size of antiderivative = 1.39 \[ \int \sin \left (a+b x+c x^2\right ) \, dx=\frac {\sqrt {2} \sqrt {\pi } \operatorname {erf}\left (-\frac {1}{4} i \, \sqrt {2} {\left (2 \, x + \frac {b}{c}\right )} {\left (\frac {i \, c}{{\left | c \right |}} + 1\right )} \sqrt {{\left | c \right |}}\right ) e^{\left (-\frac {i \, b^{2} - 4 i \, a c}{4 \, c}\right )}}{4 \, {\left (\frac {i \, c}{{\left | c \right |}} + 1\right )} \sqrt {{\left | c \right |}}} + \frac {\sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\frac {1}{4} i \, \sqrt {2} {\left (2 \, x + \frac {b}{c}\right )} {\left (-\frac {i \, c}{{\left | c \right |}} + 1\right )} \sqrt {{\left | c \right |}}\right ) e^{\left (-\frac {-i \, b^{2} + 4 i \, a c}{4 \, c}\right )}}{4 \, {\left (-\frac {i \, c}{{\left | c \right |}} + 1\right )} \sqrt {{\left | c \right |}}} \]
[In]
[Out]
Time = 5.53 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.02 \[ \int \sin \left (a+b x+c x^2\right ) \, dx=\frac {\sqrt {2}\,\sqrt {\pi }\,\cos \left (\frac {4\,a\,c-b^2}{4\,c}\right )\,\mathrm {S}\left (\frac {\sqrt {2}\,\left (\frac {b}{2}+c\,x\right )\,\sqrt {\frac {1}{c}}}{\sqrt {\pi }}\right )\,\sqrt {\frac {1}{c}}}{2}+\frac {\sqrt {2}\,\sqrt {\pi }\,\sin \left (\frac {4\,a\,c-b^2}{4\,c}\right )\,\mathrm {C}\left (\frac {\sqrt {2}\,\left (\frac {b}{2}+c\,x\right )\,\sqrt {\frac {1}{c}}}{\sqrt {\pi }}\right )\,\sqrt {\frac {1}{c}}}{2} \]
[In]
[Out]